From: Wei Liu Date: Fri, 17 Aug 2018 15:12:20 +0000 (+0100) Subject: x86/vvmx: make get_shadow_eptp static function X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3429 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e4b866d70366a5cb46325a1560850ff25d110964;p=xen.git x86/vvmx: make get_shadow_eptp static function Its callers live within the same file. Signed-off-by: Wei Liu Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/hvm/vmx/vvmx.c b/xen/arch/x86/hvm/vmx/vvmx.c index 918d47df93..b7d9a1a65a 100644 --- a/xen/arch/x86/hvm/vmx/vvmx.c +++ b/xen/arch/x86/hvm/vmx/vvmx.c @@ -1107,7 +1107,7 @@ static void load_shadow_guest_state(struct vcpu *v) /* TODO: CR3 target control */ } -uint64_t get_shadow_eptp(struct vcpu *v) +static uint64_t get_shadow_eptp(struct vcpu *v) { struct p2m_domain *p2m = p2m_get_nestedp2m(v); struct ept_data *ept = &p2m->ept; diff --git a/xen/include/asm-x86/hvm/vmx/vvmx.h b/xen/include/asm-x86/hvm/vmx/vvmx.h index 9ea35eb795..a20bd9e2d1 100644 --- a/xen/include/asm-x86/hvm/vmx/vvmx.h +++ b/xen/include/asm-x86/hvm/vmx/vvmx.h @@ -188,8 +188,6 @@ enum vmx_insn_errno set_vvmcs_real_safe(const struct vcpu *, u32 encoding, set_vvmcs_real_safe(vcpu, encoding, val) : \ set_vvmcs_virtual_safe(vcpu_nestedhvm(vcpu).nv_vvmcx, encoding, val)) -uint64_t get_shadow_eptp(struct vcpu *v); - void nvmx_destroy_vmcs(struct vcpu *v); int nvmx_handle_vmptrld(struct cpu_user_regs *regs); int nvmx_handle_vmptrst(struct cpu_user_regs *regs);